/*
 * @Author: 一路向阳 tt_sunzhenfeng@163.com
 * @Date: 2024-02-03 15:03:21
 * @LastEditors: 一路向阳 tt_sunzhenfeng@163.com
 * @LastEditTime: 2024-02-07 22:17:54
 * @FilePath: \utils_react_manager\app\src\api\login.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request';

// 验证码请求
export const getCaptchaCode = () : Promise<ICaptchaCodeResponse> => {
  return request.get("/getCaptchaCode");
};

// 登录请求
export const login = (data: ILoginPayload) : Promise<ILoginResponse> => {
  return request.post("/login", data);
};